package com.hanlin.tank;

/**
 * 描述：设计模式
 *
 * @author:hl.yuan
 * @date:2022-01-12
 */
public class Main {

    public static void main(String[] args) throws InterruptedException {
        TankFrame frame = new TankFrame();
        // 从配置文件中获取坦克数量
        Integer tankNum =Integer.parseInt( PropertiesMgr.get("tankNum"));
        // 初始出坦克
        for (int i = 0; i < tankNum; i++) {
            frame.tankList.add(new Tank(50 + i * 80, 200, Dir.UP,Group.BAD, frame));
        }
        while (true) {
            Thread.sleep(50L);
            frame.repaint();
        }

    }

}
